Exact Asymptotics of Divide-and-Conquer Recurrences

نویسندگان

  • Philippe Flajolet
  • Mordecai J. Golin
چکیده

The divide-and-conquer principle is a majoi paradigm of algorithms design. Corresponding cost functions satisfy recurrences that directly reflect the decomposition mechanism used in the algorithm. This work shows that periodicity phenomena, often of a fractal nature, are ubiquitous in the performances of these algorithms. Mellin transforms and Dirichlet series are used to attain precise asymptotic estimates. The method is illustrated by a detailed average case, variance and distribution analysis of the classic top-down recursive mergesort algorithm. The approach is applicable to a large number of divide-and-conquer recurrences, and a general theorem is obtained when the partitioningmerging toll of a divide-and-conquer algorithm is a sublinear function. As another illustration the method is also used to provide an exact analysis of an efficient maxima-finding algorithm. Many algorithms are based on a recursive divide-and-conquer strategy. Accordingly, their complexity is expressed by recurrences of the usual divide-andconquer form [10]. Typical examples are heapsort, mergesort, Karatsuba's multiprecision multiplication, discrete Fourier transforms, binomial queues, sorting networks, etc. It is relatively easy to determine general orders of growth for solutions to these recurrences as explained in standard texts, see the "master theorem" of [10, p. 62]: if for example In = fin/2j + ffn/21 + en (1) and en = 0(n) then fn = 0(n log n) while if en = 0(72 1 ') for some e > 0 then en = 0(n). However, a precise asymptotic analysis is often appreciably more delicate. At a more detailed level, divide-and-conquer recurrences tend to have solutions that involve periodicities, many of which are of a fractal nature. It is our purpose here to discuss the analysis of such periodicity phenomena while focussing on the analysis of the standard top-down recursive mergesort algorithm. We will show for example that the average number of comparisons performed by mergesort satisfies U(n) = n lg n nB(1g n) 0(n1/2), while the variance is of the form nC(1g n) 0(n' 12 ): B(u) and C(u) are both periodic functions that are fractal-like and which are everywhere continuous but not differentiable at a dense set of points on the line. Our approach consists in introducing for this range of problems techniques Mellin transforms, Dirichlet series, and Perron's formula that are borrowed aks.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Asymptotics of linear divide-and-conquer recurrences

Asymptotics of divide-and-conquer recurrences is usually dealt either with elementary inequalities or with sophisticated methods coming from analytic number theory. Philippe Dumas proposes a new approach based on linear algebra. The example of the complexity of Karatsuba’s algorithm is used as a guide in this summary. The complexity analysis of divide-and-conquer algorithms gives rise to recurr...

متن کامل

Notes on Better Master Theorems for Divide-and-Conquer Recurrences

Techniques for solving divide-and-conquer recurrences are routinely taught to thousands of Computer Science students each year. The dominant approach to solving such recurrences is known as the Master Method [2]. Recently, Akra and Bazzi [1] discovered a surprisingly elegant generalization of the Master Method that yields a very simple formula for solving most divideand-conquer recurrences. In ...

متن کامل

Divide-and-conquer recurrences associated with generalized heaps, optimal merge, and related structures

An elementary approach is given to studying the recurrence relations associated with generalized heaps (or d-heaps), cost of optimal merge, and generalized divide-and-conquer minimization problems. We derive exact formulae for the solutions of all such recurrences and give some applications. In particular, we present a precise probabilistic analysis of Floyd’s algorithm for constructing d-heaps...

متن کامل

Geometrical Interpretation of the Master Theorem for Divide-and-conquer Recurrences

We provide geometrical interpretation of the Master Theorem to solve divide-and-conquer recurrences. We show how different cases of the recurrences correspond to different kinds of fractal images. Fractal dimension and Hausdorff measure are shown to be closely related to the solution of such recurrences.

متن کامل

Free Vibration Analysis of Repetitive Structures using Decomposition, and Divide-Conquer Methods

This paper consists of three sections. In the first section an efficient method is used for decomposition of the canonical matrices associated with repetitive structures. to this end, cylindrical coordinate system, as well as a special numbering scheme were employed. In the second section, divide and conquer method have been used for eigensolution of these structures, where the matrices are in ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1993